﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SetField.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_Field.SetField" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>动态页面模板</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(function () {
        HtmlTypeChange();
        $("#ddlHtmltype").change(function () {
            HtmlTypeChange();
        });
    });
    function HtmlTypeChange() {
        var htmltype = "<%=htmlType%>";
        if ($("#ddlHtmltype").val() == htmltype) {
            $("#spanHtmltype").show();
        }
        else {
            $("#spanHtmltype").hide();
        }
    }
</script>
</head>
<body>

<div class="frmstatic" style="display:block;">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>扩展&nbsp;&gt;&nbsp;字段管理&nbsp;&gt;&nbsp;操作字段</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="./Admin.aspx" class="sub_menu_selected">字段列表</a></label> | </td>
                        <td><label><a href='./SetField.aspx?t=add'>添加字段</a><label> | </td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>


<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">


          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">

            <tr>
              <td width="145" align="right" nowrap bgcolor="#F4FBFF">字段名称:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtColumn" runat="server" CssClass="input" Width="206px"></asp:TextBox>           
               </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">字段类型:</td>
              <td bgcolor="#F4FBFF">   
                  <asp:DropDownList ID="ddlColtype" runat="server"></asp:DropDownList>    
               </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">字段长度:</td>
              <td bgcolor="#F4FBFF">   
                  <asp:TextBox ID="txtLength" runat="server" CssClass="input" Width="100px"></asp:TextBox> 
                  0为最大值
               </td>
            </tr>
            
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">字段标题:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtTitle" runat="server" CssClass="input" Width="206px"></asp:TextBox>
                </td>
            </tr>
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">字段提示:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtMessage" runat="server" CssClass="input" Width="506px" Height="50px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">绑定Html控件类型:</td>
              <td bgcolor="#F4FBFF">
                  <asp:DropDownList ID="ddlHtmltype" runat="server"></asp:DropDownList>   
                  <span id="spanHtmltype" style=" display:inline;">
                    <asp:DropDownList ID="ddlCategory_no_list" runat="server"></asp:DropDownList>  
                    <asp:CheckBox ID="cbxIsbindsub" runat="server" Text="绑定子项" />(只查询子项可优化性能)
                  </span>
              </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">绑定Html控件属性:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtHtmldepth" runat="server" CssClass="input" Width="206px"></asp:TextBox> 
                  高 * 宽 (高和宽可为空但*必须填写，编辑器不能用百分号)
              </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">默认值:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtDefaultValue" runat="server" CssClass="input" Width="506px" Height="50px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">排序数字:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtOrder" runat="server" CssClass="input" Width="100px"></asp:TextBox> 
                  为编辑内容时显示扩展字段的顺序
              </td>
            </tr>

            <tr>
              <td bgcolor="#F4FBFF">&nbsp;</td>
              <td bgcolor="#F4FBFF">
                <asp:HiddenField ID="hidAction" runat="server" />
                <asp:Button BackColor="#F4FBFF" CssClass="bt" ID="btnUpdate" runat="server" Text=" 设置 " onclick="btnUpdate_Click" />
              </td>
            </tr>

            <tr>
              <td bgcolor="#F4FBFF">&nbsp;</td>
              <td bgcolor="#F4FBFF">
                  <span style="color:#999; "><!--#ffaa25//-->
                    (提示：如要是Access数据库需手动添加字段，扩展高级功能需添加如下基础字段)<br />
                    生成静态：create_path，pagename，extname，prevpage，nextpage<br />
                    会员中心：author<br />
                  </span>
                </td>
            </tr>
          </table>
          
          
</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>

